package io.github.yedaxia.apidocs.parser;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * a controller node corresponds to a controller file
 *
 * @author yeguozhong yedaxia.github.com
 */
@Data
public class ControllerNode {

    private String author;
    private String description;
    private String baseUrl = "";
    private String className;
    private String packageName;
    private Boolean generateDocs = Boolean.FALSE;
    private List<RequestNode> requestNodes = new ArrayList<>();
    private String srcFileName;
    private String docFileName;

    public void addRequestNode(RequestNode requestNode){
        requestNodes.add(requestNode);
    }

}
